import VueRouter from 'vue-router'

import home from './components/tabbar/HomeContainer.vue'
import member from './components/tabbar/MemberContainer.vue'
import shopcar from './components/tabbar/ShopcarContainer.vue'
import search from './components/tabbar/SearchContainer.vue'
import NewsList from './components/news/NewsList.vue'
import NewsInfo from './components/news/NewsInfo.vue'

var router = new VueRouter({
  routes: [
    { path: "/", redirect: '/home'},
    { path: '/home', component: home},
    { path: '/member', component: member},
    { path: '/shopcar', component: shopcar},
    { path: '/search', component: search},
    { path: '/home/newslist', component: NewsList},
    { path: '/home/newsinfo/:id', component: NewsInfo}
  ],
  linkActiveClass: 'mui-active' //覆盖默认的路由高亮的类
})

export default router